package com.hsmpay.mobile.pojo.trans;

import com.hsmpay.common.pojo.BasePojo;
import com.hsmpay.common.util.DateConvertUtil;
import com.hsmpay.common.util.StringCoUtils;

import java.util.Date;

/**
 * 合并订单 java bean
 * 对应 info_ combineOrder表
 *
 * @author 颜铃璋
 * @created 2013-6-3
 */
public class CombineOrder extends BasePojo {
    private static final long serialVersionUID = -7830064583676716253L;

    //用户反馈基本属性
    private Long id;
    private String userName;//收款人姓名
    private String bankCard;//收款人卡号
    private String openingBank;//开户行
    private String branchesBank;//支行
    private Integer bBankProvince;//支行省
    private Integer bBankCity;//支行市
    private String branchesBankCode;//支行代码   万三需要
    private Double transMoney;//交易金额
    private Integer clearType;//结算类型 2 结算  3 提现
    private Integer status;//结算状态 0 结算失败 1 完成结算 2等待第三方结算 3未付款 4 已重新付款 5 交易关闭 6 暂停结算
    private Date createDate;//订单创建时间 取得是 合并第一个订单的时间
    private Long longDate;//订单长整型时间
    //三毛接口 银行代码
    private String accBankCode;
    private Double revenueFee;//渠道手续费

    private Long terminalTypeId;//终端类型
    private Long roleId;//终端角色
    private String loginName;//用户登录名称
    private Long organizationId;//机构ID
    private String reqCode;
    private String reqMsg;
    private Integer isReturnAB;
    private Long batchCoId;//合单批次ID  值是从sqc_v_co_ batchCoId序列里面取

    private Date startDate;
    private Date endDate;

    //
    private String endDateStr;//显示结算日期 yyyy-MM-dd HH:mm:ss endDate 是它的下一天
    private String startDateStr;//显示结算日期 yyyy-MM-dd HH:mm:ss startDate 是它的下一天
    private String terminalTypeName;//终端类型名称
    private String roleName;//终端类型名称
    private Double minTranMoney;
    private Double maxTranMoney;
    private String likeBankCard;

    private Integer sort;//三毛接口需要 这个是明细号

    private Long paramOrgId;
    private String layer;
    private String organizationName;//机构名称
    private String orgParentNames;//父机构名称


    private Integer isSBOTranMoney;//是否查询合单 金额 1 为查询
    private String clearMac;
    private Integer reClear;

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Long getLongDate() {
        return longDate;
    }

    public void setLongDate(Long longDate) {
        this.longDate = longDate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return StringCoUtils.trim(userName);
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getBankCard() {
        return StringCoUtils.trim(bankCard);
    }

    public void setBankCard(String bankCard) {
        this.bankCard = bankCard;
    }

    public String getOpeningBank() {
        return openingBank;
    }

    public void setOpeningBank(String openingBank) {
        this.openingBank = openingBank;
    }

    public String getBranchesBank() {
        return branchesBank;
    }

    public void setBranchesBank(String branchesBank) {
        this.branchesBank = branchesBank;
    }

    public Integer getBBankProvince() {
        return bBankProvince;
    }

    public void setBBankProvince(Integer bankProvince) {
        bBankProvince = bankProvince;
    }

    public Integer getBBankCity() {
        return bBankCity;
    }

    public void setBBankCity(Integer bankCity) {
        bBankCity = bankCity;
    }

    public String getBranchesBankCode() {
        return branchesBankCode;
    }

    public void setBranchesBankCode(String branchesBankCode) {
        this.branchesBankCode = branchesBankCode;
    }

    public Double getTransMoney() {
        return transMoney;
    }

    public void setTransMoney(Double transMoney) {
        this.transMoney = transMoney;
    }

    public Integer getClearType() {
        return clearType;
    }

    public void setClearType(Integer clearType) {
        this.clearType = clearType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getEndDateStr() {
        if (null == endDateStr && null != endDate) {
            endDateStr = DateConvertUtil.dateTimeString(endDate);//DateConvertUtil.dateString(DateConvertUtil.getSpecifiedDayBefore(DateConvertUtil.getSpecifiedDayBefore(endDate)));
        }
        return endDateStr;
    }

    public void setEndDateStr(String endDateStr) {
        if (null != endDateStr && !"".equals(endDateStr)) {
            endDate = DateConvertUtil.stringDateTime(endDateStr);//DateConvertUtil.getSpecifiedDayAfter(DateConvertUtil.getSpecifiedDayAfter(DateConvertUtil.stringDate(endDateStr)));
        }
        this.endDateStr = endDateStr;
    }

    public String getStartDateStr() {
        if (null == startDateStr && null != startDate) {
            startDateStr = DateConvertUtil.dateTimeString(startDate);
        }
        return startDateStr;
    }

    public void setStartDateStr(String startDateStr) {
        if (null != startDateStr && !"".equals(startDateStr)) {
            startDate = DateConvertUtil.stringDateTime(startDateStr);//DateConvertUtil.getSpecifiedDayAfter(DateConvertUtil.getSpecifiedDayAfter(DateConvertUtil.stringDate(endDateStr)));
        }
        this.startDateStr = startDateStr;
    }

    public String getAccBankCode() {
        return accBankCode;
    }

    public void setAccBankCode(String accBankCode) {
        this.accBankCode = accBankCode;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Double getRevenueFee() {
        return revenueFee;
    }

    public void setRevenueFee(Double revenueFee) {
        this.revenueFee = revenueFee;
    }

    public Long getTerminalTypeId() {
        return terminalTypeId;
    }

    public void setTerminalTypeId(Long terminalTypeId) {
        this.terminalTypeId = terminalTypeId;
    }

    public String getTerminalTypeName() {
        return terminalTypeName;
    }

    public void setTerminalTypeName(String terminalTypeName) {
        this.terminalTypeName = terminalTypeName;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public Long getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
    }

    public Long getParamOrgId() {
        return paramOrgId;
    }

    public void setParamOrgId(Long paramOrgId) {
        this.paramOrgId = paramOrgId;
    }

    public String getLayer() {
        return layer;
    }

    public void setLayer(String layer) {
        this.layer = layer;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public String getReqCode() {
        return reqCode;
    }

    public void setReqCode(String reqCode) {
        this.reqCode = reqCode;
    }

    public String getReqMsg() {
        return reqMsg;
    }

    public void setReqMsg(String reqMsg) {
        this.reqMsg = reqMsg;
    }

    public Integer getIsReturnAB() {
        return isReturnAB;
    }

    public void setIsReturnAB(Integer isReturnAB) {
        this.isReturnAB = isReturnAB;
    }

    public Double getMinTranMoney() {
        return minTranMoney;
    }

    public void setMinTranMoney(Double minTranMoney) {
        this.minTranMoney = minTranMoney;
    }

    public Double getMaxTranMoney() {
        return maxTranMoney;
    }

    public void setMaxTranMoney(Double maxTranMoney) {
        this.maxTranMoney = maxTranMoney;
    }

    public String getLikeBankCard() {
        return likeBankCard;
    }

    public void setLikeBankCard(String likeBankCard) {
        this.likeBankCard = likeBankCard;
    }

    public Long getBatchCoId() {
        return batchCoId;
    }

    public void setBatchCoId(Long batchCoId) {
        this.batchCoId = batchCoId;
    }

    public Integer getIsSBOTranMoney() {
        return isSBOTranMoney;
    }

    public void setIsSBOTranMoney(Integer isSBOTranMoney) {
        this.isSBOTranMoney = isSBOTranMoney;
    }

    public String getOrgParentNames() {
        return orgParentNames;
    }

    public void setOrgParentNames(String orgParentNames) {
        this.orgParentNames = orgParentNames;
    }

    public String getClearMac() {
        return clearMac;
    }

    public void setClearMac(String clearMac) {
        this.clearMac = clearMac;
    }

    public Integer getReClear() {
        return reClear;
    }

    public void setReClear(Integer reClear) {
        this.reClear = reClear;
    }
}
